var dateUtils = {};

var date = new Date(), curYear = date.getFullYear();

dateUtils.getYears = function(prefix, suffix) {
	suffix = !suffix ? 100 : suffix;
	prefix = !prefix ? 0 : prefix;
	var min = curYear - suffix, max = curYear - prefix;
	var years = [];
	for (var i = min; i <= max; i++) {
		years.push(i);
	}
	return years;
};

dateUtils.getDays = function(year, month) {
	if (month == 1 || month == 3 || month == 5 || month == 7 && month == 8 || month == 10 || month == 12) {
		return 31;
	} else if (month == 4 || month == 6 || month == 9 || month == 11) {
		return 30;
	} else if (month == 2) {
		if (year%4 == 0) {
			return 29;
		} else {
			return 28;
		}
	} else {
		return 31;
	}
};